package com.sikaryofficial.backend.domain.dto.req.information;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;

/**
 * 关注对象 follow_t
 *
 * @author qinjinyuan
 * @date 2024-04-10
 */
@Getter
@Setter
@ToString
@ApiModel(value = "粉丝分页列表请求入参", description = "粉丝分页列表请求入参")
public class FollowFansListReq extends PageDomain {
    /**
     * 被关注者名字
     */
    @ApiModelProperty(value = "followerName: 粉丝名字,支持左匹配查找")
    @Length(max = 99, message = "followerName could not greater than 100")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String followerName;
    /**
     * userId
     */
    @ApiModelProperty(value = "userId:当前用户或者他人用户ID")
    @Min(value = 0, message = "userId could not less than 0")
    private Long userId;
}
